import request from '../utils/request'
// 获取验证码
export function getCode(data: any) {
    return request({
        url: '/nmzp/login/gen/' + data,
        method: 'get',
    })
}
// 登录接口
export function login(data: any) {
    return request({
        url: '/nmzp/login/phone',
        method: 'post',
        data
    })
}
// 协议文件接口
export function getPolicy(data: any) {
    return request({
        url: 'policy_protocol/list',
        method: 'get',
        params: data
    })
}
//上传头像
export function uploadAvatar(data: any) {
    return request({
        url: '/nmzp/user/avatar',
        method: 'post',
        data
    })
}
//更新用户信息
export function updateUserInfo(data: any) {
    return request({
        url: '/nmzp/user/update',
        method: 'put',
        data
    })
}
